/*
 * @Author: jjjjwei 1506865174@qq.com
 * @Date: 2022-08-04 19:48:13
 * @LastEditors: jjjjwei 1506865174@qq.com
 * @LastEditTime: 2022-08-17 11:10:54
 * @FilePath: \react\react-routeredux\src\api\user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from '../utils/axios'
const userLogin = '/loginByAccount' 

export function UserLogin({account,password}){
    return new Promise((resolve,reject)=>{
        axios({
<<<<<<< HEAD
=======
            method:'get',
>>>>>>> 039e0124ae27cd35272dcd158b54ac6820d646eb
            url:userLogin,
            params:{account,password}
        }).then((res)=>{
              resolve(res.data);
        }).catch((err)=>{
              reject(err);
        })
   })
}

